﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/content/table_btn.css")" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="@Url.Content("~/plugin/css/pikaday.css")">
<link rel="stylesheet" href="@Url.Content("~/plugin/css/site.css")">
<script src="@Url.Content("~/plugin/moment.min.js")"></script>
<script src="@Url.Content("~/plugin/pikaday.js")"></script>

<!--[if lt IE 8]>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
<![endif]-->

<noscript>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content("~/content/activitie_noscript.css")" rel="stylesheet" type="text/css"/>
</noscript>

@model PessModel.Archive

@{
    ViewBag.Title = "创建档案";
}
<script src="@Url.Content("~/Scripts/jquery-1.9.1.min.js")" type="text/javascript"></script>

<h2>创建档案</h2>
<div id="operate">
    @Html.ActionLink("返回档案列表", "Index", new {activityID=ViewBag.ActivityID })
</div>

@using (Html.BeginForm()) {

    <fieldset class="create">
        <legend> </legend>
        <p>@Html.ValidationSummary(true)</p>
         <div class="editor-label">
            @*@Html.LabelFor(model => model.ProjectTitle)*@课题名称：
        </div>
        <div class="editor-field long">
            @Html.EditorFor(model => model.ProjectTitle)
            @Html.ValidationMessageFor(model => model.ProjectTitle)
        </div>
        
      <div class="inline">
        <div class="editor-label">
            @*@Html.LabelFor(model => model.SubjectID, "Subject")*@学科：
        </div>
        <div class="editor-field">
            @Html.DropDownList("SubjectID", String.Empty)<br />
            @Html.ValidationMessageFor(model => model.SubjectID)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.CountyCode)*@区县：
        </div>
        <div class="editor-field short">
            @Html.DropDownList("CountyCode")
            @Html.ValidationMessageFor(model => model.CountyCode)
        </div>
      </div>

      <div class="inline">
       <div class="editor-label">
            @*@Html.LabelFor(model => model.TeacherName)*@教师姓名：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TeacherName)
            @Html.ValidationMessageFor(model => model.TeacherName)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.Birthdate)*@出生日期：
        </div>
        <div class="editor-field short">
            <input type="text" id="Birthdate" name="Birthdate" value="@Html.DisplayFor(model => model.Birthdate)">
            @Html.ValidationMessageFor(model => model.Birthdate)
        </div>
      </div>

      <div class="inline">

@*        <div class="editor-label">
            @Html.LabelFor(model => model.PhotoUrl)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PhotoUrl)
            @Html.ValidationMessageFor(model => model.PhotoUrl)
        </div>*@

        <div class="editor-label">
            @*@Html.LabelFor(model => model.Gender)*@性别：
        </div>
        <div class="editor-field short">
@*            @Html.EditorFor(model => model.Gender)*@
            @Html.DropDownList("Gender")
            @Html.ValidationMessageFor(model => model.Gender)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.PhoneNumber)*@电话号码：
        </div>
        <div class="editor-field short">
            @Html.EditorFor(model => model.PhoneNumber)
            @Html.ValidationMessageFor(model => model.PhoneNumber)
        </div>
      </div>

      <div class="inline">
        <div class="editor-label">
            @*@Html.LabelFor(model => model.EducationDegree)*@学历：
        </div>
        <div class="editor-field short">
            @Html.EditorFor(model => model.EducationDegree)
            @Html.ValidationMessageFor(model => model.EducationDegree)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.GradeLevel)*@任教年级：
        </div>
        <div class="editor-field short">
            @Html.EditorFor(model => model.GradeLevel)
            @Html.ValidationMessageFor(model => model.GradeLevel)
        </div>
      </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.SchoolName)*@学校名称：
        </div>
        <div class="editor-field long">
            @Html.EditorFor(model => model.SchoolName)
            @Html.ValidationMessageFor(model => model.SchoolName)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.SchoolAddress)*@学校地址：
        </div>
        <div class="editor-field long">
            @Html.EditorFor(model => model.SchoolAddress)
            @Html.ValidationMessageFor(model => model.SchoolAddress)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.SchoolPrincipal)*@校长：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SchoolPrincipal)
            @Html.ValidationMessageFor(model => model.SchoolPrincipal)
        </div>

        <div class="editor-label fly2">
            @*@Html.LabelFor(model => model.SchoolComment)*@学校评语：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SchoolComment)
            @Html.ValidationMessageFor(model => model.SchoolComment)
        </div>

        <div class="editor-label fly2">
            @*@Html.LabelFor(model => model.CountyEBComment)*@区县评语：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CountyEBComment)
            @Html.ValidationMessageFor(model => model.CountyEBComment)
        </div>

        <div class="editor-label">
            历史档案号：
        </div>
        <div class="editor-field">
            @*@Html.EditorFor(model => model.PreviousSN)<strong>（今次不要填）</strong>*@
            @Html.ValidationMessageFor(model => model.PreviousSN)
        </div>

        <div class="editor-btn">
            <input type="submit" value="新建并显示详细信息" />
        </div>
            @*@Html.LabelFor(model => model.Subject.ActivityID, "Activity")*@
            @*@Html.DropDownList("ActivityID", String.Empty)
            @Html.ValidationMessageFor(model => model.Subject.ActivityID)*@
            @Html.Hidden("ActivityID",(int)ViewBag.ActivityID)
               
    </fieldset>
}


@*@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}*@
<script>
        var pikaday1 = new Pikaday({
            field: document.getElementById('Birthdate'),
            firstDay: 1,
            minDate: new Date('1905-01-01'),
            maxDate: new Date('2025-12-31'),
            yearRange: [1905,2025],
            onSelect: function () { },
            onOpen: function () {
            }
        });
</script>